<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.18"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>embedme: libemb::DoubleArray Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">embedme
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.18 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><b>libemb</b></li><li class="navelem"><a class="el" href="classlibemb_1_1_double_array.html">DoubleArray</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="classlibemb_1_1_double_array-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">libemb::DoubleArray Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>浮点型数组类,例:[1.01, 2.02, 3.03]  
 <a href="classlibemb_1_1_double_array.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_base_type_8h_source.html">BaseType.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for libemb::DoubleArray:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classlibemb_1_1_double_array.png" usemap="#libemb::DoubleArray_map" alt=""/>
  <map id="libemb::DoubleArray_map" name="libemb::DoubleArray_map">
<area href="classlibemb_1_1_array.html" alt="libemb::Array&lt; double &gt;" shape="rect" coords="0,0,149,24"/>
  </map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac57c59cd02d6f9639ec8b893ab7fd0bb"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_double_array.html#ac57c59cd02d6f9639ec8b893ab7fd0bb">DoubleArray</a> (const std::string &amp;arrayString)</td></tr>
<tr class="memdesc:ac57c59cd02d6f9639ec8b893ab7fd0bb"><td class="mdescLeft">&#160;</td><td class="mdescRight">浮点数组  <a href="classlibemb_1_1_double_array.html#ac57c59cd02d6f9639ec8b893ab7fd0bb">More...</a><br /></td></tr>
<tr class="separator:ac57c59cd02d6f9639ec8b893ab7fd0bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9739eccdbdf1146ac2b387b40b5abf7a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_double_array.html#a9739eccdbdf1146ac2b387b40b5abf7a">initWithString</a> (const std::string &amp;arrayString)</td></tr>
<tr class="memdesc:a9739eccdbdf1146ac2b387b40b5abf7a"><td class="mdescLeft">&#160;</td><td class="mdescRight">使用字符串初始化  <a href="classlibemb_1_1_double_array.html#a9739eccdbdf1146ac2b387b40b5abf7a">More...</a><br /></td></tr>
<tr class="separator:a9739eccdbdf1146ac2b387b40b5abf7a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7295a092ba7f8fb72cac2cc71599b83d"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_double_array.html#a7295a092ba7f8fb72cac2cc71599b83d">serialize</a> ()</td></tr>
<tr class="memdesc:a7295a092ba7f8fb72cac2cc71599b83d"><td class="mdescLeft">&#160;</td><td class="mdescRight">序列化  <a href="classlibemb_1_1_double_array.html#a7295a092ba7f8fb72cac2cc71599b83d">More...</a><br /></td></tr>
<tr class="separator:a7295a092ba7f8fb72cac2cc71599b83d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_classlibemb_1_1_array"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_classlibemb_1_1_array')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="classlibemb_1_1_array.html">libemb::Array&lt; double &gt;</a></td></tr>
<tr class="memitem:a18f384c9980122a222a8834ec4549edf inherit pub_methods_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="a18f384c9980122a222a8834ec4549edf"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>type</b> ()</td></tr>
<tr class="separator:a18f384c9980122a222a8834ec4549edf inherit pub_methods_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a74fae8b9ae6e46275b04c337765638f8 inherit pub_methods_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="a74fae8b9ae6e46275b04c337765638f8"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>size</b> ()</td></tr>
<tr class="separator:a74fae8b9ae6e46275b04c337765638f8 inherit pub_methods_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac3eae29a65713e9d7aafe9a40476411e inherit pub_methods_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="ac3eae29a65713e9d7aafe9a40476411e"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>clear</b> ()</td></tr>
<tr class="separator:ac3eae29a65713e9d7aafe9a40476411e inherit pub_methods_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2e6801ad851932d7c9cb9ba625203d8 inherit pub_methods_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="ae2e6801ad851932d7c9cb9ba625203d8"></a>
double &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator[]</b> (int idx)</td></tr>
<tr class="separator:ae2e6801ad851932d7c9cb9ba625203d8 inherit pub_methods_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad08865cd47ca7f6afa1eb39c958338f8 inherit pub_methods_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="ad08865cd47ca7f6afa1eb39c958338f8"></a>
<a class="el" href="classlibemb_1_1_array.html">Array</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classlibemb_1_1_array.html">Array</a> &amp;array)</td></tr>
<tr class="separator:ad08865cd47ca7f6afa1eb39c958338f8 inherit pub_methods_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ada997ad145ec831fada13f7767b686ca inherit pub_methods_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="ada997ad145ec831fada13f7767b686ca"></a>
<a class="el" href="classlibemb_1_1_array.html">Array</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>append</b> (double item)</td></tr>
<tr class="separator:ada997ad145ec831fada13f7767b686ca inherit pub_methods_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a3ed044e1aed75ea335ab74db0b07bcbb"><td class="memItemLeft" align="right" valign="top">std::ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlibemb_1_1_double_array.html#a3ed044e1aed75ea335ab74db0b07bcbb">operator&lt;&lt;</a> (std::ostream &amp;os, <a class="el" href="classlibemb_1_1_double_array.html">DoubleArray</a> &amp;array)</td></tr>
<tr class="memdesc:a3ed044e1aed75ea335ab74db0b07bcbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">流输出运算符重载  <a href="classlibemb_1_1_double_array.html#a3ed044e1aed75ea335ab74db0b07bcbb">More...</a><br /></td></tr>
<tr class="separator:a3ed044e1aed75ea335ab74db0b07bcbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="inherited"></a>
Additional Inherited Members</h2></td></tr>
<tr class="inherit_header pro_attribs_classlibemb_1_1_array"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_classlibemb_1_1_array')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="classlibemb_1_1_array.html">libemb::Array&lt; double &gt;</a></td></tr>
<tr class="memitem:a826c73deb47b563fce5fd5d89a01e67d inherit pro_attribs_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="a826c73deb47b563fce5fd5d89a01e67d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>m_type</b></td></tr>
<tr class="separator:a826c73deb47b563fce5fd5d89a01e67d inherit pro_attribs_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f40d7b8b433aa0f16adec247311098a inherit pro_attribs_classlibemb_1_1_array"><td class="memItemLeft" align="right" valign="top"><a id="a5f40d7b8b433aa0f16adec247311098a"></a>
std::vector&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>m_array</b></td></tr>
<tr class="separator:a5f40d7b8b433aa0f16adec247311098a inherit pro_attribs_classlibemb_1_1_array"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>浮点型数组类,例:[1.01, 2.02, 3.03] </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="ac57c59cd02d6f9639ec8b893ab7fd0bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac57c59cd02d6f9639ec8b893ab7fd0bb">&#9670;&nbsp;</a></span>DoubleArray()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">libemb::DoubleArray::DoubleArray </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>arrayString</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>浮点数组 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arrayString</td><td>初始化字符串，如"[1.0,2.1,3.2]" </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a9739eccdbdf1146ac2b387b40b5abf7a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9739eccdbdf1146ac2b387b40b5abf7a">&#9670;&nbsp;</a></span>initWithString()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool libemb::DoubleArray::initWithString </td>
          <td>(</td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>arrayString</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>使用字符串初始化 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">arrayString</td><td>初始化字符串,如"[1.0,2.1,3.2]" </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>true 初始化成功 </dd>
<dd>
false 初始化失败 </dd></dl>

</div>
</div>
<a id="a7295a092ba7f8fb72cac2cc71599b83d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7295a092ba7f8fb72cac2cc71599b83d">&#9670;&nbsp;</a></span>serialize()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string libemb::DoubleArray::serialize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>序列化 </p>
<dl class="section return"><dt>Returns</dt><dd>std::string 序列化字符串 </dd></dl>

</div>
</div>
<h2 class="groupheader">Friends And Related Function Documentation</h2>
<a id="a3ed044e1aed75ea335ab74db0b07bcbb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3ed044e1aed75ea335ab74db0b07bcbb">&#9670;&nbsp;</a></span>operator&lt;&lt;</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">std::ostream &amp;&#160;</td>
          <td class="paramname"><em>os</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classlibemb_1_1_double_array.html">DoubleArray</a> &amp;&#160;</td>
          <td class="paramname"><em>array</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">friend</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>流输出运算符重载 </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">os</td><td></td></tr>
    <tr><td class="paramname">array</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>std::ostream&amp; </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="_base_type_8h_source.html">BaseType.h</a></li>
<li>src/BaseType.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.18
</small></address>
</body>
</html>
